using System.Windows;
using System.Windows.Data;

namespace ibba.src.sl.recursos.Converters
{
    public class NotVisibilityConverter : IValueConverter
    {
        #region IValueConverter Members

        public object Convert(object value, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return value.Equals(Visibility.Collapsed) ? Visibility.Visible : Visibility.Collapsed;
        }

        public object ConvertBack(object value, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return value.Equals(Visibility.Collapsed) ? Visibility.Visible : Visibility.Collapsed;
        }

        #endregion
    }
    
}
